.video{
    width: 100vw;
    height: 100vh;
}

.top{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 40px;
    z-index: 999;
}

.videoList{
    width: 100vw;
    height: calc(100vh - 40px);
    margin-top: 40px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
}

.videoContainer{
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
}

/* 视频播放器区域 */
.videoPlayer{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.videoItem{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧操作按钮 */
.videoActions{
    position: absolute;
    right: 16px;
    top: 66%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

/* .actionItem{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
} */

/* .priceIcon{
    width: 40px;
    height: 40px;
    background: #ff4d4f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
} */

.starIcon, .checkIcon{
    /* width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    backdrop-filter: blur(10px); */
}

.actionText{
    color: white;
    font-size: 12px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 8px;
}

/* 底部信息区域 */
.videoInfo{
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
   
    padding: 20px 16px;
    z-index: 10;
}

.videoTitle{
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.videoDescription{
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

/* 弹幕容器 - 在视频最上方显示 */
.danmuContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%; /* 只覆盖视频最上方30%区域 */
    pointer-events: none; /* 不阻挡视频操作 */
    z-index: 5;
    overflow: hidden; /* 隐藏超出边界的弹幕 */
}

/* 弹幕项 */
.danmuItem {
    position: absolute;
    white-space: nowrap; /* 不换行 */
    font-size: 16px; /* 字体大小 */
    font-weight: bold;
    color: white !important; /* 白色文字 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* 文字阴影，提高可读性 */
    animation: danmuMove 8s linear forwards; /* 8秒线性动画，从右到左 */
    will-change: transform; /* 优化动画性能 */
    right: 0; /* 从右侧开始 */
}

/* 弹幕移动动画 - 从右到左滑动 */
@keyframes danmuMove {
    0% {
        transform: translateX(100vw); /* 从右侧屏幕外开始 */
        opacity: 0;
    }
    5% {
        opacity: 1; /* 快速显示 */
    }
    95% {
        opacity: 1; /* 保持显示 */
    }
    100% {
        transform: translateX(-100vw); /* 移动到左侧完全消失 */
        opacity: 0;
    }
}